home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / kidna.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-10-10  |  1.6 KB  |  52 lines

  1. /*
  2.     This file is part of the KDE libraries
  3.  
  4.     Copyright (c) 2003 Waldo Bastian <bastian@kde.org>
  5.  
  6.     This library is free software; you can redistribute it and/or
  7.     modify it under the terms of the GNU Library General Public
  8.     License as published by the Free Software Foundation; either
  9.     version 2 of the License, or (at your option) any later version.
  10.  
  11.     This library is distributed in the hope that it will be useful,
  12.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  14.     Library General Public License for more details.
  15.  
  16.     You should have received a copy of the GNU Library General Public License
  17.     along with this library; see the file COPYING.LIB.  If not, write to
  18.     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  19.     Boston, MA 02110-1301, USA.
  20. */
  21. #ifndef _KIDNA_H
  22. #define _KIDNA_H
  23.  
  24. #include <qstring.h>
  25. #include "kdelibs_export.h"
  26.  
  27. namespace KIDNA {
  28.     /**
  29.      * Converts an International Domain Name @p idna to 
  30.      * its ASCII representation
  31.      *
  32.      * If conversion is not possible, an empty string is returned.
  33.      */
  34.     KDECORE_EXPORT QCString toAsciiCString(const QString &idna);
  35.  
  36.     /**
  37.      * Converts an International Domain Name @p idna to 
  38.      * its ASCII representation
  39.      *
  40.      * If conversion is not possible, an empty string is returned.
  41.      */
  42.     KDECORE_EXPORT QString toAscii(const QString &idna);
  43.  
  44.     /**
  45.      * Converts an International Domain Name @p idna to 
  46.      * its UNICODE representation
  47.      */
  48.     KDECORE_EXPORT QString toUnicode(const QString &idna);
  49. }
  50.  
  51. #endif /* _KIDNA_H */
  52.